package controller;
import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.test.util.JsonResult;

import entity.SysRole;
import entity.SysUser;
import rabbit.Senders;
import service.SysRoleService;
import service.SysUserService;
/**
 * Created by wenchao.ren on 2014/4/26.
 */
@SpringBootApplication
//启注解事务管理  
@Controller
@Import({ Senders.class}) 
public class TestRabbitController {

	@Autowired
    public Senders senders;

	@RequestMapping(value = "senders", method = RequestMethod.GET)
    public void sysUserList() {
		String aa="nihao";
		
		  senders.send(aa);
    }
	
	
	
	
    
}
